#
# phone_list = ['13880001111', '13999992222', '15099993333']
# password_list = ['123456', '456def', 'aaaaaa']
#
# info = []
# # 遍历手机号
# for i in phone_list:
#     # 遍历密码
#     for j in password_list:
#         # 每个组合都添加到结果中
#         info.append((i, j))
#
# print(info)



# res1 = []
# for i in range(1,11):
#     res1.append(i**2)
# print(res1)
# # 方式2：列表推导式
# res2 = [i**2 for i in range(1,11)]
# print(res2)



 # 语法2：[表达式 for 变量 in 可迭代对象 if 条件判断]
# 案例：从1~10中获取每个整数偶数的平方，保存到列表中
# res3 = [i ** 2 for i in range(1, 11) if i % 2 == 0]
# print(res3)
#
# # 语法3：[表达式 for 变量 in 可迭代对象 for 变量 in 可迭代对象]
# result1 = [(i, j) for i in phone_list for j in password_list]
# print(result1)


login_data = [
{"username": "13488888888", "password": "123456"},
{"username": "", "password": "123456"},
{"username": "13800000001", "password": ""},
{"username": "13800000001", "password": "123"}
]





